package com.asia5b.a5mall.middleware.model.bean

import com.asia5b.a5bmall.resource.ResString
import com.asia5b.a5mall.middleware.R
import com.asia5b.a5mall.middleware.model.base.BaseModel
import java.io.Serializable

/**
 * 搜索历史模型
 */
data class HistoryBean(val searchMode:Boolean, val text :String=""): BaseModel() {

    fun getViewText() :String{
        if (searchMode) {
            return text
        }else {
            return """"$text" ${ResString.get(R.string.店铺)}"""
        }
    }



}